package com.zhiyou100.service.impl;

import com.zhiyou100.entity.Event;
import com.zhiyou100.mapper.EventMapper;
import com.zhiyou100.service.EventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 活动服务 实现 类
 *
 * @author yang
 * @version 1.0.0
 * @date 2020-09-01 15:27
 */
@Service
public class EventImpl implements EventService {
    @Autowired
    private EventMapper mapper;

    @Override
    public List<Event> list() {
        return mapper.list();
    }

    @Override
    public Event selectOne(Integer id) {
        return mapper.selectOne(id);
    }

    @Override
    public void updateOne(Event event) {
        mapper.updateOne(event);
    }

    @Override
    public void deleteOne(Integer id) {
        mapper.deleteOne(id);
    }

    @Override
    public void insertOne(Event event) {
        mapper.insertOne(event);
    }
}
